package com.eusun.design.chain;


public class FileLogger extends AbstractLogger {
    public FileLogger() {
        this(AbstractLogger.DEBUG);
    }

    public FileLogger(int level) {
        this.level = level;
        setNextLogger(new ErrorLogger());
    }

    @Override
    protected void write(String message) {
        System.out.println("File::Logger: " + message);
    }
}
